package com.edu.proxy.dynamicproxy;

import java.lang.reflect.InvocationHandler;

/**
 * 具体角色RealSubject：  
 * @author wangjunjie
 *
 */
public class RealSubject implements Subject {

	public void request() {
		System.out.println(" From real subject. ");
	}
	
	// 调用处理器对象的引用
	protected InvocationHandler handler;
	
	// 以调用处理器为参数的构造函数
	public RealSubject(InvocationHandler handler){
		this.handler = handler;
	}
	
	public RealSubject(){
	}
	
	

}
